package com.itheima.methodDemo;

public class methodDemo3 {
    public static void main(String[] args) {
        //在方法里面定义两个变量并求和打印
        getsum();
    }

    public static void getsum(){
        int num1 = 10;
        int num2 = 20;
        int result = num1+num2;
        System.out.println(result);
    }


}
